package cn.school.hotel.entity;

import cn.school.common.utils.SysUserUtils;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("itrip_area_dic")
public class TripAreaDic implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty(value = "ID")
    private String id;

    @ApiModelProperty(value = "区域名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "区域编号")
    @TableField("areaNo")
    private String areaNo;

    @ApiModelProperty(value = "父级区域")
    @TableField("parent")
    private String parent;

    @ApiModelProperty(value = "0:未激活 1:已激活")
    @TableField("isActivated")
    private String isActivated;

    @ApiModelProperty(value = "是否是商圈(0:不是 1:是)")
    @TableField("isTradingArea")
    private String isTradingArea;

    @ApiModelProperty(value = "(0:不是 1：是)")
    @TableField("isHot")
    private String isHot;

    @ApiModelProperty(value = "区域级别(0:国家级 1:省级 2:市级 3:县/区)")
    @TableField("level")
    private String level;

    @ApiModelProperty(value = "1:国内 2：国外")
    @TableField("isChina")
    private String isChina;
    /**
     * 默认租户为当前登录人的租户
     */
    private String tenantId = SysUserUtils.getSysUser().getTenantId();

}
